
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="<?php echo base_url('application/public/bootstrap-3.3.5/css/bootstrap.min.css');?>" rel="stylesheet">
	<link href="<?php echo base_url('application/public/css/register.css');?>" rel="stylesheet"/>
	<title>注册</title>
</head>

<body>
<br/><br/>
<?php /*$attribute = array('class' => 'form-horizontal');*/?><!--
--><?php /*echo form_open_multipart(base_url('uc/register'),$attribute);*/?>
<form class="form-horizontal" action="<?php echo base_url('uc/register');?>" method="post" accept-charset="utf-8" enctype="multipart/form-data">
	<div class="form-group">
		<label for="username" class="col-sm-2 control-label">姓名 :</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" id="username" name="username"
			       placeholder="<?php echo is_null(set_value('username'))?'':'Username';?>"
				   value="<?php echo is_null(set_value('username'))?'':set_value('username');?>"/>
			<br/><span id="username_err"><?php echo form_error('username');?></span>
		</div>
	</div>

	<div class="form-group">
		<label for="pwd" class="col-sm-2 control-label">密码 :</label>
		<div class="col-sm-10">
			<input type="password" class="form-control" id="pwd" name="pwd" placeholder="Password"/>
			<br/><span id="pwd_err"><?php echo form_error('pwd');?></span>
		</div>
	</div>

	<div class="form-group">
		<label for="radio-group" class="col-sm-2 control-label">性别 :</label>
		<div id="radio-group" class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" name="sex" id="inlineRadio1" value="男"
					<?php echo (is_null(set_value('sex')) || (set_value('sex') !='男'))?'':'checked';?>/> 男
			</label>
			<label class="radio-inline">
				<input type="radio" name="sex" id="inlineRadio2" value="女"
					<?php echo (is_null(set_value('sex')) || (set_value('sex') !='女'))?'':'checked';?>/> 女
			</label>
			<label class="radio-inline">
				<input type="radio" name="sex" id="inlineRadio3" value="XXY" disabled/> XXY
			</label>
			<br/><br/><span id="sex_err"><?php echo form_error('sex');?></span>
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label">生日 :</label>
		<div id="" class="col-sm-10">
			<input placeholder=" 请输入日期" name="birthday" id="birthday" class="laydate-icon" onclick="laydate({elem: '#birthday'});"/>
			<br/><br/><span id="birthday_err"><?php echo form_error('birthday');?></span>
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label">角色 :</label>
		<div id="select-group" class="col-sm-12">
			<select name="authority" class="form-control">
				<option value="0">普通用户</option>
				<?php if($auth==1):?>
				<option value="1">管理员</option>
				<?php else:?>
				<option value="0">你还想要其他角色吗?</option>
				<?php endif;?>
			</select>
			<br/><span id="authority_err"><?php echo form_error('authority');?></span>
		</div>
	</div>

	<!--<div class="form-group">
		<label class="col-sm-2 control-label">上传图片 :</label>
		<div id="upPic" class="col-sm-12">
			<input type="file" class="form-control" name="upPic">
		</div>
	</div>-->

	<!--<p>Pictures:<br />
		<input type="file" name="pictures[]" /><br />
		<input type="file" name="pictures[]" /><br />
		<input type="file" name="pictures[]" /><br />
		<input type="submit" name="upload" value="添加" />
	</p>-->

	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">注册</button>
			<button type="reset" class="btn btn-default">重置</button> &nbsp;&nbsp;
			<?php if(isset($auth)): ?>
			<a href="javascript:history.go(-1);location.reload()">返回</a>
			<?php else:?>
			<a href="<?php echo base_url();?>">返回登录</a>
			<?php endif;?>
		</div>
	</div>
</form>

</body>
	<script type="text/javascript" src="<?php echo base_url('application/public/js/jquery-2.1.4.min.js');?>"></script>
	<script type="text/javascript" src="<?php echo base_url('application/public/bootstrap-3.3.5/js/bootstrap.min.js');?>"></script>
	<script type="text/javascript" src="<?php echo base_url('application/public/laydate/laydate.js');?>"></script>
</html>

